home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_24636.txt < prev    next >
Text File  |  1990-10-02  |  9KB  |  368 lines

  1. -- card: 24636 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 14015
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global ladderPit
  9.   if ladderPit
  10.   then set the loc of card button "ladder" to 45,208
  11. else set the loc of card button "ladder" to 149,127
  12. send cardOpened to background
  13. end openCard
  14.  
  15. on move
  16.   global direction,chase,blasting,ladderPit,causeOfDeath
  17.   if direction = "east" or direction = "up" then
  18.     go card id 24153
  19.     exit move
  20.   end if
  21.   if direction = "down" then
  22.     if ladderPit then
  23.       go to card id 25762
  24.       exit move
  25.     else
  26.       answer "Do you really want to go into the pit?" with "yes"or"no"
  27.       if it is "no" then exit move
  28.       put "pit1" into causeOfDeath
  29.       go to card id 3409
  30.       exit move
  31.     end if
  32.   end if
  33.   pass move
  34. end move
  35.  
  36.  
  37. on closeCard
  38.   set the cursor to 4
  39.   put "" into field 3
  40. end closeCard
  41.  
  42. on take
  43.   global object,carried,ladderPit,cardID,prevID
  44.   put last word of object into obj
  45.   delete first char of obj
  46.   delete last char of obj
  47.   if obj="ladder" then
  48.     hide object
  49.     set the loc of object to 149,127
  50.     put false into ladderPit
  51.     put cardID into prevID
  52.   end if
  53.   -- remember to update carried if you do not pass take
  54.   pass take
  55. end take
  56.  
  57. on drop
  58.   global object,dropRoom,carried
  59.   answer "Drop object in this room, or into the pit?" with "pit" or "room"
  60.   if it="pit" then put 7465 into dropRoom
  61.   -- remember to update carried if you do not pass drop
  62.   pass drop
  63. end drop
  64.  
  65. on use
  66.   global object,carried,ladderPit
  67.   put last word of object into obj
  68.   delete first char of obj
  69.   delete last char of obj
  70.   if obj="ladder" then
  71.     show object
  72.     set the loc of object to 123,147
  73.     set the loc of object to 97,167
  74.     set the loc of object to 71,187
  75.     set the loc of object to 45,208
  76.     put true into ladderPit
  77.     put "The rope ladder is tied to the pitons and leads into the pit." into field 3
  78.     exit use
  79.   end if
  80.   -- update carried if object lost (or do so in inv. card button)
  81.   pass use
  82. end use
  83.  
  84.  
  85.  
  86.  
  87.  
  88. -- part 16 (button)
  89. -- low flags: 80
  90. -- high flags: 2000
  91. -- rect: left=122 top=230 right=266 bottom=156
  92. -- title width / last selected line: 0
  93. -- icon id / first selected line: 9301 / 9301
  94. -- text alignment: 1
  95. -- font id: 0
  96. -- text size: 12
  97. -- style flags: 0
  98. -- line height: 16
  99. -- part name: knife
  100. ----- HyperTalk script -----
  101. on mouseUp
  102.   global takeFlag,examFlag,object,cardID
  103.   put the name of the target into object
  104.   if takeFlag = true
  105.   then send take to card id cardID
  106. else put "a knife" into field 3
  107. put false into examFlag
  108. end mouseUp
  109.  
  110.  
  111.  
  112. -- part 17 (button)
  113. -- low flags: 80
  114. -- high flags: 2000
  115. -- rect: left=89 top=230 right=266 bottom=123
  116. -- title width / last selected line: 0
  117. -- icon id / first selected line: 1015 / 1015
  118. -- text alignment: 1
  119. -- font id: 0
  120. -- text size: 12
  121. -- style flags: 0
  122. -- line height: 16
  123. -- part name: nodule
  124. ----- HyperTalk script -----
  125. on mouseUp
  126.   global takeFlag,examFlag,object,cardID
  127.   put the name of the target into object
  128.   if takeFlag = true
  129.   then send take to card id cardID
  130. else put "a silicon sphere" into field 3
  131. put false into examFlag
  132. end mouseUp
  133.  
  134.  
  135.  
  136. -- part 19 (button)
  137. -- low flags: 80
  138. -- high flags: 2000
  139. -- rect: left=96 top=96 right=132 bottom=130
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 1019 / 1019
  142. -- text alignment: 1
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 16
  147. -- part name: bomb
  148. ----- HyperTalk script -----
  149. on mouseUp
  150.   global takeFlag,examFlag,object,cardID
  151.   put the name of the target into object
  152.   if takeFlag = true
  153.   then send take to card id cardID
  154. else put "a time bomb" into field 3
  155. put false into examFlag
  156. end mouseUp
  157.  
  158.  
  159.  
  160. -- part 20 (button)
  161. -- low flags: 80
  162. -- high flags: 2000
  163. -- rect: left=211 top=221 right=257 bottom=245
  164. -- title width / last selected line: 0
  165. -- icon id / first selected line: 24317 / 24317
  166. -- text alignment: 1
  167. -- font id: 0
  168. -- text size: 12
  169. -- style flags: 0
  170. -- line height: 16
  171. -- part name: key
  172. ----- HyperTalk script -----
  173. on mouseUp
  174.   global takeFlag,examFlag,object,cardID
  175.   put the name of the target into object
  176.   if takeFlag = true
  177.   then send take to card id cardID
  178. else put "a key" into field 3
  179. put false into examFlag
  180. end mouseUp
  181.  
  182.  
  183.  
  184. -- part 21 (button)
  185. -- low flags: 80
  186. -- high flags: 2000
  187. -- rect: left=166 top=164 right=200 bottom=200
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 7012 / 7012
  190. -- text alignment: 1
  191. -- font id: 0
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: gem
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   global takeFlag,examFlag,object,cardID
  199.   put the name of the target into object
  200.   if takeFlag = true
  201.   then send take to card id cardID
  202. else put "a glowing gem" into field 3
  203. put false into examFlag
  204. end mouseUp
  205.  
  206.  
  207.  
  208. -- part 23 (button)
  209. -- low flags: 00
  210. -- high flags: 0000
  211. -- rect: left=198 top=66 right=146 bottom=240
  212. -- title width / last selected line: 0
  213. -- icon id / first selected line: 0 / 0
  214. -- text alignment: 1
  215. -- font id: 0
  216. -- text size: 12
  217. -- style flags: 0
  218. -- line height: 16
  219. -- part name: 
  220. ----- HyperTalk script -----
  221. on mouseUp
  222.   global examFlag,direction,cardID
  223.   if examFlag then
  224.     put "a stairway leading east and up" into field 3
  225.     put false into examFlag
  226.   else
  227.     put "east" into direction
  228.     send move to card id cardID
  229.   end if
  230. end mouseUp
  231.  
  232.  
  233.  
  234. -- part 35 (button)
  235. -- low flags: 00
  236. -- high flags: 0000
  237. -- rect: left=3 top=195 right=217 bottom=86
  238. -- title width / last selected line: 0
  239. -- icon id / first selected line: 0 / 0
  240. -- text alignment: 1
  241. -- font id: 0
  242. -- text size: 12
  243. -- style flags: 0
  244. -- line height: 16
  245. -- part name: 
  246. ----- HyperTalk script -----
  247. on mouseUp
  248.   global examFlag,direction,cardID
  249.   if examFlag then
  250.     put "A bottomless pit.  Looks unsafe to climb into." into field 3
  251.     put false into examFlag
  252.   else
  253.     put "down" into direction
  254.     send move to card id cardID
  255.   end if
  256. end mouseUp
  257.  
  258.  
  259.  
  260. -- part 18 (button)
  261. -- low flags: 80
  262. -- high flags: 2000
  263. -- rect: left=132 top=109 right=145 bottom=166
  264. -- title width / last selected line: 0
  265. -- icon id / first selected line: 14953 / 14953
  266. -- text alignment: 1
  267. -- font id: 0
  268. -- text size: 12
  269. -- style flags: 0
  270. -- line height: 16
  271. -- part name: ladder
  272. ----- HyperTalk script -----
  273.  
  274. on mouseUp
  275.   global takeFlag,examFlag,object,cardID,ladderPit,direction
  276.   put the name of the target into object
  277.   if takeFlag = true then
  278.     send take to card id cardID
  279.   else
  280.     put "a rope ladder" into field 3
  281.     put false into examFlag
  282.   end if
  283.   if ladderPit then
  284.     put "down" into direction
  285.     send move to card id cardID
  286.   end if
  287. end mouseUp
  288.  
  289.  
  290.  
  291. -- part 36 (button)
  292. -- low flags: 00
  293. -- high flags: 0000
  294. -- rect: left=52 top=5 right=96 bottom=185
  295. -- title width / last selected line: 0
  296. -- icon id / first selected line: 0 / 0
  297. -- text alignment: 1
  298. -- font id: 0
  299. -- text size: 12
  300. -- style flags: 0
  301. -- line height: 16
  302. -- part name: 
  303. ----- HyperTalk script -----
  304. on mouseUp
  305.   global examFlag,takeFlag,direction,cardID
  306.   if takeFlag then
  307.     put "Take the wall??  Get real." into field 3
  308.     put false into takeFlag
  309.   else
  310.     put "A magnificent orange flowstone wall" into field 3
  311.     put false into examFlag
  312.   end if
  313. end mouseUp
  314.  
  315.  
  316.  
  317. -- part 40 (button)
  318. -- low flags: 00
  319. -- high flags: 0000
  320. -- rect: left=30 top=183 right=195 bottom=59
  321. -- title width / last selected line: 0
  322. -- icon id / first selected line: 0 / 0
  323. -- text alignment: 1
  324. -- font id: 0
  325. -- text size: 12
  326. -- style flags: 0
  327. -- line height: 16
  328. -- part name: 
  329. ----- HyperTalk script -----
  330. on mouseUp
  331.   global examFlag,takeFlag,direction,cardID
  332.   if takeFlag then
  333.     put "Can't take the pitons. They are solidly in place." into field 3
  334.     put false into takeFlag
  335.   else
  336.     put "Two pitons imbedded in the stone" into field 3
  337.     put false into examFlag
  338.   end if
  339. end mouseUp
  340.  
  341.  
  342.  
  343. -- part 41 (button)
  344. -- low flags: 00
  345. -- high flags: 0001
  346. -- rect: left=20 top=217 right=249 bottom=69
  347. -- title width / last selected line: 0
  348. -- icon id / first selected line: 0 / 0
  349. -- text alignment: 1
  350. -- font id: 0
  351. -- text size: 12
  352. -- style flags: 0
  353. -- line height: 16
  354. -- part name: New Button
  355.  
  356.  
  357. -- part contents for background part 25
  358. ----- text -----
  359. Bottomless Pit Room
  360. (looking north)
  361.  
  362. -- part contents for background part 24
  363. ----- text -----
  364. You are in the bottomless pit room.  Stone stairs lead upward to the east.  There is a dark, smooth-walled pit here, the bottom of which you can not see.  A cold wind is whistling out of the pit with an almost deafening sound.  The north wall of the room is a magnificent sheet of orange flowstone.
  365.  
  366. -- part contents for background part 36
  367. ----- text -----
  368. 1